/**************************************
*       Class URLReader
***************************************/
import java.net.*;
import java.io.*;

public class URLConnectionReader {
  public static void main (String args[]) {
    try {
      URL dep2 = new URL("http://www.besti.edu.cn");
      URLConnection uc = dep2.openConnection();

      BufferedReader in = new BufferedReader( new InputStreamReader( uc.getInputStream() ) );

      String line;

      while( (line = in.readLine()) != null ) {
        System.out.println(line);
      }

      in.close();
    }
    catch(Exception e){
      System.out.println(e);
    }
  }
}